using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using Common.Utilities.Dispatcher;
using Workflows.Components.Reports.Properties;

namespace Workflows.Components.Reports
{
    [Serializable]
    public class ReportBuilder:WorkflowComponentBase
    {
        private ReportBuilderInstruction _Instruction;
        private ReportBuilderOutput _Output;

        public ReportBuilder():base()
        {
            this.ComponentActivityType = WorkflowActivityType.SimpleActivity;
            this.ComponentCategory = WorkflowComponentCategory.Report_Tasks.ToString();
            this.ComponentIcon = Resources.chart;
            this.ComponentImage = Resources.Microsoft_202;
            this.ComponentName = "Report builder";
            this.Description = "Generate RDL definition by specifying tables, charts and queries";

        }

        public override InstructionBase Instruction
        {
            get { return _Instruction; }
            set { _Instruction = (ReportBuilderInstruction) value; }
        }

        public override ResultBase Output
        {
            get { return _Output; }
            set { _Output = (ReportBuilderOutput) value; }
        }

        public override XmlNode Serialize(ref XmlDocument xDoc, ref XmlNode parentNode)
        {
            XmlNode xNode = base.Serialize(ref xDoc, ref parentNode);

            return xNode;
        }

        public override WorkflowComponentBase Instantiate(XmlNode xNode)
        {
            throw new NotImplementedException();
        }
    }
}
